package ntd.util.frame.javacv.action.bo;

import cn.hutool.core.date.DateUtil;
import lombok.Data;
import com.c.Constant;

import java.util.List;

/**
 * 视觉分析入参
 */
@Data
public class ImgAnalysisInBo {

    /** 基站编码 */
    private String mn;

    /** 设备编码 */
    private String cameraCode;

    /** 图片字节流 */
    private byte[] img;

    /** 模型列表 */
    private List<String> visionModelCodes;

    /** 时间 */
    private String datetime;

    public ImgAnalysisInBo() {
        this.datetime = DateUtil.format(DateUtil.date(), Constant.DATE_FORMAT_WLW_TWO);
    }

    public ImgAnalysisInBo(String mn, String cameraCode, byte[] img, List<String> visionModelCodes) {
        this.mn = mn;
        this.cameraCode = cameraCode;
        this.img = img;
        this.visionModelCodes = visionModelCodes;
        this.datetime = DateUtil.format(DateUtil.date(), Constant.DATE_FORMAT_WLW_TWO);
    }
}
